/*
 * SPDX-FileCopyrightText: 2020-2025 Espressif Systems (Shanghai) CO LTD
 *
 * SPDX-License-Identifier: Apache-2.0
 */

# pragma once

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#define BRIDGE_MSC_VOLUME_LABEL "ESPPROG_MSC" 
void msc_init(void);
uint16_t bootuf2_get_sector_size(void);
uint32_t bootuf2_get_sector_count(void);
int boot2uf2_read_sector(uint32_t start_sector, uint8_t *buff, uint32_t sector_count);
int bootuf2_write_sector(uint32_t start_sector, const uint8_t *buff, uint32_t sector_count);